/*
 * @Author: 许旺玉
 * @Description: 拼团模块接口
 * @Date: 2020-06-28 15:52:41
 * @LastEditTime: 2020-06-29 10:56:48
 * @LastEditors: Please set LastEditors
 */ 

import { ajaxGet,ajaxPost} from '@/utlis/request.js'

export function group_purchase_goods(params) {  //拼团商品列表  
    const url = 'group/purchase/goods'
    return ajaxGet(url, params)
}

export function group_purchase_goods_detail(params) {  //拼团商品详情  
    const url = 'group/purchase/goods/detail/42'
    return ajaxGet(url, params)
}

export function group_purchase_goods_category(params) {  //获取团购商品分类  
    const url = 'group/purchase/goods/category/group'
    return ajaxGet(url, params)
}

export function group_purchase_order_pay(data) {  //拼团支付  
    const url = 'group/purchase/order/pay/163'
    return ajaxPost(url, data)
}

export function group_purchase_order(data) {  //创建拼团订单  
    const url = 'group/purchase/order'
    return ajaxPost(url, data)
}

export function group_purchase_order_select(params) {  //拼团结算  
    const url = 'group/purchase/order/select'
    return ajaxGet(url, params)
}

export function group_purchase_orderList(params) {  //拼团订单列表  
    const url = 'group/purchase/order'
    return ajaxGet(url, params)
}

export function group_purchase_order_number(params) {  //拼团订单数量小标  
    const url = 'group/purchase/order/number'
    return ajaxGet(url, params)
}

export function group_purchase_order_users(params) {  //拼团订单参团用户  
    const url = 'group/purchase/order/users/83'
    return ajaxGet(url, params)
}

export function group_purchase_order_cancel(data) {  //取消拼团订单  
    const url = 'group/purchase/order/cancel/189'
    return ajaxPost(url, data)
}
